package com.xiao.androidcompose01.common

import android.widget.Toast
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.composed
import androidx.compose.ui.platform.LocalContext
import com.xiao.androidcompose01.weight.click

@Composable
fun Modifier.ClickToast(message: String="该功能待更新")=composed {
		val context = LocalContext.current
		click(true){
			Toast.makeText(context,message,Toast.LENGTH_LONG).show()
		}
}